package cn.wenhaha.app.mapping.bean.dto;

import cn.wenhaha.app.mapping.bean.validator.Cron;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;

/**
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-09-19 21:13
 */
@Data
public class ConfigContext {
    @NotEmpty(message = "配置名称不能为空")
    private String name;

    @NotEmpty(message = "corn不能为空")
    @Cron
    private String cron;

    /** 同步条件 **/
    private Condition condition;

    /** 回写 **/
    @Valid
    private WriteBack writeBack;

}
